package com.beyond.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.beyond.dao.UserMapper;
import com.beyond.entity.User;
import com.beyond.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {
	
	@Autowired(required=true)
	private UserMapper userMapper;

	@Override
	@Transactional
	public User getUser(int id) throws Exception {
		return userMapper.getUser(id);
	}

}
